package com.caissa.framework.starter.autoconfigure.instrument.aop.ltw;

import com.caissa.framework.starter.autoconfigure.AspectBase;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Description:
 * User: forest
 * Date: 2021-01-12 11:25 上午
 */
@Aspect
public abstract class AspectLTWBase extends AspectBase {

    @Around("scope()")
    public Object doAround(ProceedingJoinPoint pjp) throws Throwable {
        return super.doCatInstrument(pjp);
    }

    @Pointcut
    public void scope() {
        //标识方法，保持空方法体即可，aspectj会在运行时动态生成里面内容
    }
}
